// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'ZOMBIE'
0AC6: 0@ = label @actorM offset
0AC6: 4@ = label @markerM offset
0ADF: add_dynamic_GXT_entry "zomb3" text "san andreas saved congratulations"
0ADF: add_dynamic_GXT_entry "zomb1" text "~1~ / ~1~"
0ADF: add_dynamic_GXT_entry "zomb2" text "annihilation zombies"
0AF1: write_int 0 to_ini_file "CLEO\POZIT.INI" section "INVASION" key "SET" 
repeat
wait 0
until if Player.Defined(0)
01F0: set_max_wanted_level_to 0 
01EB: set_traffic_density_multiplier_to 26.0 
03DE: set_pedestrians_density_multiplier_to 0.0 
0A8C: write_memory 9867623 size 4 value 1 virtual_protect 1 
0A8C: write_memory 9867624 size 4 value 1 virtual_protect 1 
00C0: set_current_time_hours_to 23 minutes_to 0 
01B5: force_weather 1 
06C8: enable_riot 1 
072C: generate_police_bikes 0 
099E: enable_police_patrols 0 
06D0: enable_emergency_traffic 0 
set_weather 81 
Model.Load(#KNIFECUR)
Model.Load(#SHOVEL)
Model.Load(#FLAME)
Model.Load(#CHNSAW)
038B: load_requested_models
if and
    model.Available(#KNIFECUR) 
    model.Available(#SHOVEL) 
    model.Available(#FLAME) 
    model.Available(#CHNSAW) 
then
//succes - action
wait 250
for 1@ = 0 to 400 step 4
wait 10
0209: 11@ = random_int_in_ranges 1 5 
if 11@ == 1 
then
06D1: 24@v = "OLDMAN" // v$ = string
12@ = 4 
end
if 11@ == 2 
then
06D1: 24@v = "OLDFATWOMAN" // v$ = string 
12@ = 6
end
if 11@ == 3 
then
06D1: 24@v = "OLDFATMAN" // v$ = string
12@ = 9 
end
if 11@ == 4 
then
06D1: 24@v = "FATMAN" // v$ = string
12@ = 37 
end
if 11@ == 5 
then
06D1: 24@v = "FATMAN" // v$ = string
12@ = 37 
end
if 12@ == 37
then 
13@ = 1000
else
13@ = 0
end
0208: 15@ = random_float_in_ranges -100.0 100.0 
0208: 16@ = random_float_in_ranges 150.0 245.0  
04C4: store_coords_to 8@ 9@ 14@ from_actor $PLAYER_ACTOR with_offset 15@ 16@ 1.0 
04D3: get_nearest_car_path_coords_from 8@ 9@ 14@ type 2 store_to 8@ 9@ 14@ 
0376: 3@ = create_random_actor_at 8@ 9@ 14@ 
Actor.Angle(3@) = 88.36082
Actor.Health(3@) = 150
6@ = Marker.CreateAboveActor(3@)
Marker.SetIconSize(6@, 2)
Marker.SetColor(6@, 0)
0332: set_actor 3@ bleeding 1 
Actor.SetWalkStyle(3@, 24@v)
Actor.GiveWeaponAndAmmo(3@, 12@, 13@)
05E2: AS_actor 3@ kill_actor $PLAYER_ACTOR
wait 10
0A8E: 2@ = 0@ + 1@ // label offset + item offset
0A8E: 5@ = 4@ + 1@ // label offset + item offset 
0A8C: write_memory 2@ size 4 value 3@ virtual_protect 0
0A8C: write_memory 5@ size 4 value 6@ virtual_protect 0
end

7@ = 0 ///kill zombie licznik
1@ = 0 //5*20*4 = 400 ---> 100 zombie
30@ = 100 ///kill zombie
wait 0
while true
    wait 0
    for 1@ = 0 to 400 step 4
        0A8E: 2@ = 0@ + 1@ // label offset + item offset
        0A8E: 5@ = 4@ + 1@ // label offset + item offset
        0A8D: 3@ = read_memory 2@ size 4 virtual_protect 0
        0A8D: 6@ = read_memory 5@ size 4 virtual_protect 0
        if 
            not actor.Dead(3@)
        then
            else if 056D:   actor 3@ defined 
            then 
                Actor.RemoveReferences(3@)
                wait 50
                actor.DestroyInstantly(3@)
                7@ += 1
            end        
        end
        03F0: enable_text_draw 0
        wait 5 
        0340: set_text_draw_RGBA 0 252 252 255 
        033F: set_text_draw_letter_size 0.3 0.8 
        033E: set_draw_text_position 23.0 197.0 GXT "zomb2" 
        0340: set_text_draw_RGBA 124 252 124 255 
        033F: set_text_draw_letter_size 0.3 0.8 
        045B: draw_text_2numbers 23.0 215.0 GXT "zomb1" numbers 7@ 30@
        0AF0: 10@ = get_int_from_ini_file "CLEO\POZIT.INI" section "INVASION" key "MOD" 
        if or
            10@ == 1 
            0741:   actor $PLAYER_ACTOR busted 
            wasted_or_busted 
            Player.Wasted(0)
            $ONMISSION == 1 
            7@ >= 100
        then
            goto @clean6
        end
    end
end
    

        
        :clean6
        for 1@ = 0 to 400 step 4 
            0A8E: 2@ = 0@ + 1@ // label offset + item offset
            0A8D: 3@ = read_memory 2@ size 4 virtual_protect 0
            Actor.RemoveReferences(3@)
        end
        0AE0: remove_text_label "zomb1"
        0AE0: remove_text_label "zomb2"
        0AE0: remove_text_label "zomb3"
        Player.ClearWantedLevel(0)
        01F0: set_max_wanted_level_to 6 
        01EB: set_traffic_density_multiplier_to 1.0 
        03DE: set_pedestrians_density_multiplier_to 1.0 
        0A8C: write_memory 9867623 size 4 value 0 virtual_protect 1 
        0A8C: write_memory 9867624 size 4 value 0 virtual_protect 1 
        01B5: force_weather 1 
        set_weather 1 
        01B7: release_weather 
        072C: generate_police_bikes 1 
        099E: enable_police_patrols 1 
        06D0: enable_emergency_traffic 1 
        06C8: enable_riot 0
              
        end
        0ACD: show_text_highpriority "~R~~H~SCRIPT UNLOADING" time 9000  
        end_thread



:actorM
hex 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
end

:markerM
hex 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
end